package com.lizhi.yun.db.dao;/**
 * @program: spring-boot
 * @name UppRoleDao
 * @description:
 * @author: lizhi
 * @create: 2020-04-11 18:25
 */

import com.lizhi.yun.db.pojo.UppRolePOJO;
import com.lizhi.mybatis.interceptor.PageBounds;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *@program: spring-boot
 *@name UppRoleDao
 *@description:
 *@author: lizhi
 *@create: 2020-04-11 18:25
 */
@Mapper
public interface UppRoleDao {

    public int insertRecord(UppRolePOJO record);//添加一条完整记录

    public int deleteById(String roleId);//通过Id(主键)删除一条记录

    public int updateByIdSelective(UppRolePOJO record);//按Id(主键)修改指定列的值

    public int updateById(UppRolePOJO record);//按Id(主键)修改所有列的值

    public UppRolePOJO selectById(String roleId);//通过Id(主键)查询一条记录

    public List<UppRolePOJO> selectList(@Param("state") String state);//查询多条记录

    public List<UppRolePOJO> selectAll(UppRolePOJO record, PageBounds pageBounds);//根据条件查询

    public List<UppRolePOJO> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询

    public UppRolePOJO findById(Long id);
}
